#字符统计
def statistic():
    data = input("请输入数据：")
    count = {
        "DX":0,
        "XX":0,
        "SZ":0,
        "QT":0
    }
    data= list(data)
    print(data)
    for c in data:
        if c >= '0' and c <= '9':
            count["SZ"] += 1
        elif c >= 'A' and c <= 'Z':
            count["DX"] += 1
        elif c >= 'a' and c <= 'z':
            count["XX"] += 1
        else:
            count["QT"] += 1
    print(count)
statistic()